\frame[containsverbatim]
{
  \frametitle{Keeping track of analyzed method}
  \B
  \item Add fields to keep track of whether we are in a
        {\tt main} or {\tt finalize} method:
{\small
\begin{verbatim}
  private boolean inMain;
  private boolean inFinalizer;
\end{verbatim}
}
  \item Override {\tt visit(Method)}:
{\small
\begin{verbatim}
  @Override
  public void visit(Method obj) {
    inMain = obj.getName().equals("main");
    inFinalizer = obj.getName().equals("finalize");
  }
\end{verbatim}
}
  {\tt visit(Method)} is called before {\tt sawOpcode}.
  \E
}
